package com.zqx.iterator.specificaggregation;

import com.zqx.iterator.absrtactaggregation.AbstractObjectList;
import com.zqx.iterator.abstractiterator.AbstractIterator;
import com.zqx.iterator.specificiterator.ProductIterator;

import java.util.List;

/**
 * description: 具体聚合类
 * @author zqx
 * @date 2018/09/04
 */
public class ProductList extends AbstractObjectList {

    public ProductList(List<Object> objects) {
        super(objects);
    }

    //实现创建迭代器对象的具体工厂方法
    @Override
    public AbstractIterator createIterator() {
        return new ProductIterator(this);
    }
}
